package chapter14;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : DuJiabao
 * @Date : 2021/2/25 17:20
 * @Project : thinking_in_java
 * @File : null.java
 * @Desc :
 */
public class isAssignableFromTest {
  public static void main(String[] args) {
    Class<List> listClass = List.class;
    System.out.println(listClass.isAssignableFrom(List.class));  // true
    System.out.println(listClass.isAssignableFrom(ArrayList.class));  //  true
  }
}
